package com.example.test.advice.第一章_java开发中常用的方法和准则.建议11_养良好习惯显式声明UID;

import com.example.test.serial.SerializationUtils;

public class Consumer {

    public static void main(String[] args) {
        //反序列化
       Person person = (Person) SerializationUtils.readObject();
       System.out.println(person.getName());
    }
}
